public class demo5 {
    public static int Fun(int n){
       if(n <= 1){
           return 1;
       }
       return n * Fun(n-1);
    }
    public static void main(String[] args) {
        int n = 5;
        int ret = Fun(n);
        System.out.println(ret);
    }
}
